﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SetpBySetp.Web
{
    /// <summary>
    /// Summary description for BookHandler
    /// </summary>
    public class BookHandler : IHttpHandler
    {
        private static readonly string[] PriceList = { "66.00", "78.30", "56.50", "28.80", "77.00" };

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            context.Response.Write(PriceList[Int32.Parse(context.Request.QueryString["No"])]);
            //context.Response.Write(PriceList[Int32.Parse(context.Request.Form["No"])]);
            //context.Response.Write("JackieHan");
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}